/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBWaitingList;
import Database.IFDBWaitingList;
import Domain.WaitingListEntry;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLWaitingList {
    
    IFDBWaitingList WaitingList;
    
    public CTRLWaitingList()
    {
        WaitingList = new DBWaitingList();
    }
    
    public void insertEntry(WaitingListEntry WLE)
    {
        WaitingList.insertEntry(WLE);
    }
    
    public void insertEntry(int ID, String ActivityID,String SportFacility, String Date, String Time, String CustomerID)
    {
        WaitingList.insertEntry(ID, ActivityID, SportFacility, Date, Time, CustomerID);
    }
    
    public WaitingListEntry getEntry(int ID)
    {
        return WaitingList.getEntry(ID);
    }
    
    public ArrayList<WaitingListEntry> getEntryList()
    {
        return WaitingList.getEntryList();
    }
            
    public void updateEntry(int ID, String ActivityID, String CustomerID)
    {
        WaitingList.updateEntry(ID, ActivityID, CustomerID);
    }
            
    public void deleteEntry(String ActivityID, String CustomerID)
    {
        WaitingList.deleteEntry(ActivityID, CustomerID);
    }
       
    public int getID(String ActivityID, String SportFacility, String Date, String Time)
    {
        return WaitingList.getID(ActivityID, SportFacility, Date, Time);
    }
    
    public WaitingListEntry getCustomerEntry(String customerID)
    {
        return WaitingList.getCustomerEntry(customerID);
    }
    
    public int getMax()
    {
        return WaitingList.getMax();
    }
}
